import { useRef, useEffect, useLayoutEffect } from 'react'

const Index = () => {
    useEffect(() => {
        console.log('子组件---useEffect');
    }, [])
    useLayoutEffect(() => {
        setTimeout(() => {
            console.log('子组件---异步执行');
        }, 0)
        console.log('子组件---useLayoutEffect');
    }, []);
    return <>
    </>
}
export default Index